package com.demo.java.spring.ioc;

import lombok.Data;

@Data
public class Cat {
    private Person person;

    public void hello(String name) {
        System.out.println("cat say: hello " + name);
        person.hello(name);
    }
}
